<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="cutDetailReviewForm.title"/></title>
    <meta name="heading" content="<fmt:message key='cutDetailReviewForm.heading'/>"/>
    <meta name="menu" content="RoleAdminCut"/>
</head>
<div id="help">
    <h2>
        <a href="<c:url value='helpMaterialPurchase.html?decorate=false'/>"
           title="Help material purchase"
           onclick="Modalbox.show(this.href, {title: this.title, width: 600}); return false;">
               <fmt:message key="help"/>
        </a>
    </h2>
</div>
<s:form id="cutDetailForm" action="saveCutDetailReview" method="post" validate="true">
    <fieldset>
        <legend><fmt:message key="cutDetailForm.datasSelected"/></legend>
    <s:hidden key="cutDetail.id" value="%{cutDetail.id}"/>
    <s:hidden key="cutDetail.quantityFail" value="%{cutDetail.quantityFail}"/>
    <s:hidden key="cutDetail.priceXclotheFail" value="%{cutDetail.priceXclotheFail}"/>
    <table class="tableGrey" id="SelectedDatas">
            <thead>
                <tr>
                    <th class="hidden"/>
                    <th><fmt:message key="cutDetail.pantDesign.model.datas"/></th>
                    <th><fmt:message key="cutDetail.pantDesign.material.name"/></th>
                    <th><fmt:message key="cutDetail.pantDesign.modelSize.valueSize"/></th>
                    <th><fmt:message key="cutDetail.quantity"/></th>
                    <th class="hidden"/>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td> <s:property value="cutDetail.pantDesign.model.datas" /> </td>
                    <td> <s:property value="cutDetail.pantDesign.material.name" /> </td>
                    <td> <s:property value="cutDetail.pantDesign.modelSize.valueSize" /> </td>
                    <td> <s:property value="cutDetail.quantity" /> </td>
                </tr>
            </tbody>
        </table>
    </fieldset>
    <fieldset>
        <legend><fmt:message key="cutDetailForm.datasEditables"/></legend>
    <s:textfield key="cutDetail.quantityGet" required="true" cssClass="text medium"/>
    <s:textfield key="cutDetail.priceXclothes" required="true" cssClass="text medium"/>
    <%--s:textfield key="cutDetail.quantityFail" required="true" cssClass="text medium"/>
    <s:textfield key="cutDetail.priceXclotheFail" required="true" cssClass="text medium"/--%>
    </fieldset>

    <li class="buttonBar bottom">
        <s:submit cssClass="button" method="saveCutDetailReview" key="button.save" theme="simple"/>
        <s:submit cssClass="button" method="cancelCutDetailReview" key="button.cancel" theme="simple"/>
    </li>
    
</s:form>

<script type="text/javascript">
    Form.focusFirstElement($("cutDetailForm"));
</script>
